package com.example.sls.service.impl.social;

import com.example.sls.pojo.social.ActivityRegistrations;
import com.example.sls.dao.social.ActivityRegistrationsDao;
import com.example.sls.service.intserfaces.social.ActivityRegistrationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 活动报名表(ActivityRegistrations)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:01
 */
@Service
public class ActivityRegistrationsServiceImpl implements ActivityRegistrationsService {
  @Autowired
  ActivityRegistrationsDao activityRegistrationsDao;

  @Override
  public ActivityRegistrations queryById(Integer id) {
    return activityRegistrationsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return activityRegistrationsDao.deleteById(id);
  }

  @Override
  public int update(ActivityRegistrations activityRegistrations) {
    return activityRegistrationsDao.update(activityRegistrations);
  }

  @Override
  public int insert(ActivityRegistrations activityRegistrations) {
    return activityRegistrationsDao.insert(activityRegistrations);
  }

  @Override
  public long count() {
    return activityRegistrationsDao.count();
  }

  @Override
  public List<ActivityRegistrations> queryAllByLimit(ActivityRegistrations activityRegistrations, Integer pageSize, Integer offset) {
    return activityRegistrationsDao.queryAllByLimit(activityRegistrations, pageSize, offset);
  }
}
